package com.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the INSTOCK_DETAILS database table.
 * 
 */
@Entity
@Table(name="INSTOCK_DETAILS")
@NamedQuery(name="InstockDetail.findAll", query="SELECT i FROM InstockDetail i")
public class InstockDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="INSTOCK_DETAILS_INDETID_GENERATOR", sequenceName="SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="INSTOCK_DETAILS_INDETID_GENERATOR")
	private long indetid;

	@Column(name="\"COUNT\"")
	private BigDecimal count;

	@Temporal(TemporalType.DATE)
	private Date filling;

	private String remarks;

	//bi-directional many-to-one association to Instock
	@ManyToOne
	@JoinColumn(name="INSTOID")
	private Instock instock;

	public InstockDetail() {
	}

	public long getIndetid() {
		return this.indetid;
	}

	public void setIndetid(long indetid) {
		this.indetid = indetid;
	}

	public BigDecimal getCount() {
		return this.count;
	}

	public void setCount(BigDecimal count) {
		this.count = count;
	}

	public Date getFilling() {
		return this.filling;
	}

	public void setFilling(Date filling) {
		this.filling = filling;
	}

	public String getRemarks() {
		return this.remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Instock getInstock() {
		return this.instock;
	}

	public void setInstock(Instock instock) {
		this.instock = instock;
	}

}